TEST: add basic postgresql tests

TEST: add postgresql to travis
TEST io.sql: sqlite tests to seperate class

One base class for tests with sqlalchemy backend. So test classes
for mysql and postgresql don't have to overwrite tests that are
different for sqlite.
Merge pull request #6316 from jorisvandenbossche/sql-postgresql-tests

TEST: add basic postgresql tests