postgres ftw!

Add postgres support.