Moved in api/db/db.js
Code cleaning + creation of API files