splitted db.js in different files