changed DatabaseConnection to singleton