config and database classes