def _perform_database_action(action, *args):
    """Call session.*action* with the given *args*.

    Will later be used to abstract away database backend.
    """
    session = _get_session()
    getattr(session, action)(*args)
    session.commit()