chaining db methods wasn't set up correctly