switch to using postgres