DatabaseFactory constructor Null safety

DatabaseFactory()