Fix bugs, add rate limiting handling, POST sql instead of inserting in URL