implementation of SQL + wordpress