Use db directly due to lack of ctools support