using postgres instead of sqlite