database connection (unfinished)

fixed imports and am using old jsonparser may in future have to update
and change httprequest parameters *everything implemented should work*