database connection works on localhost, upload to server