Added database classes
Initial commit