used mysql as basic database
introduced json response for data injection