Replace mysql requirement by postgresql