Using postgres instead of sqlite