fixing restfull database update
removing app.js update to avoid conflict
Merge pull request #20 from redatest/master

Adding restfull database update and removing update for (app.js, main.php)