Mamking the database a singleton

+ cleaning the logs