test using postgresql instead of mongodb