Added models/db-util.js and controller code