Decoupled database module from main file and added separate test implementation stub. Tests are broken.