Request and database classes