Fix some warnings
Merge branch 'postgres' into sqlite