Added better error reporting when DB has errors. All pokes to server now check for properly formated JSON returned. If not, print out error of data returned via alert.