Created syncdb.js script for syncing the views and creating the database
added npm run-script syncdb, and fixed syncdb