using postgres instead of sqlite2