Split db.clj to transform and db-access layer