Fixed scripts failing when db config exists but isn't readable.
Added missing default db type.