changing to use database independent wpsql not mysql