fixes for travis using postgres