add proper comments. basic sanity method renaming. make sql queries aware of wp table prefix