removed cause of NPE with the DatabaseManager