Use pg instead of sqlite