Add support for postgres database
First go at testing with travis against mysql and postgres