Currently there is no meaning full error message if the database password is wrong. Add a proper debug/error message to the code.