added basic database classes