Add user object to global array
New http function to better handle query building and error checking