started link to db in js for #12