Modified database config file to make proper check for remote host vs localhost settings