refactor(main) changed 'done' to 'callback'; added db connection locator