Base SQL class for MySQL, PostGres and SQLite