Fix error when no password is set for database