Make postgre work on stage 2, still need to fix stage 4.