Updated exact same code of VPS using postgresql