Added database classes into db directory