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 remote-tracking branch 'joris/sql-postgresql-tests' into sql-enhanced
Minor name change