Revamped REST API
fixed Heroku bug
fixed the database problem
Fixed jsonify issue