created database classes