local session working, trying to get db session