Moved all database classes to their own directory