[Fix] Fixes some db startup issues