copy popular methods (db.js) to our inserted template.