Adds support for Postgresql 9.1+

Just some changes to column definitions when using postgres.