changed config file to access database