Implemented db class structure
Integrating database