Added DatabaseManager class to handle databases