grabbing data through database using phpmysql and JSON