Fix setting up database connection during installation.