Database requests now work if the user has a valid session