stop retrying failed sql queries infinitely and also dont record localhost as users ip