Create database.php

the server side file, which directly get data from local database, and then send it to javascript