Extract DB querying to api class
Rename make_session to Session