New db.js and sql template