Here is my code for DatabaseManager