code: def _perform_database_action(action, *args):
      
      session = _get_session()
      getattr(session, action)(*args)
      session.commit()
docs: Call session.*action* with the given *args*.
  
      Will later be used to abstract away database backend.