Manages Synergy DB state

def db_command(parser_args):
    """ Manages Synergy DB state """
    from synergy.db.manager import db_manager

    if parser_args.reset:
        db_manager.reset_db()
        # initialize DB with the context.process_context entries
        parser_args.update = True

    if parser_args.update:
        db_manager.update_db()