added api.js to commit, now will drop and load the database