How to run database Query on WordPress?