Setup postgreql as databasefor production, dev and test environments