finally it works on the remote database