fixed some db startup issues