Fix DataBase method calls with null parameters