Backend created in form of PHP to get json from mysql database