Configure postgre database.