fix crash if no database is specified
Remove check for "null" error, leads to crashing of the server