changed use of $qpdb to use full functionality of the api (e.g. delete,
insert, update, prepare)
removed unnecessary white space