Added database adapter
Implemented database interactions, but throwing nullptr