How to use db operation in WordPress?