fixed db connection to run on localhost (but with remote server)