Wire up db to new handler pattern