Fixing travis build to work with pgsql, and adding sql_server db code