Work around minor differences in HHVM behavior for MySQL.
Use proper PostgreSQL function names rather than legacy aliases that arent documented anymore. This should continue to work back to PHP v4.2 still, and also works with HHVM.
Add IF EXISTS/IF NOT EXISTS to MySQL commands when creating/droping sequence tables. This prevents race conditions that can be easily triggered in unit tests running in parallel.