Testing pulling data from our sqldatabase, and encoding it in JSON