Using postgres db instead of sqlite.