moved 'db' to 'api.db'
Added api.js to authoring-tools and set up dependencies