Complete rewrite for prepared SQL statements

Rewrite to use prepared SQL statements inside SourceMod. Doesn't require
any remote PHP for DB sync anymore.