converted online block to use doctrine
removed unused dbutil usage
removed unused dbutil usage
updated change theme code to doctrine
converted countitems api to doctrine
Merge pull request #1320 from rojblake/doctrine

Doctrine conversions