setting up guard and postgresql