Started draft on postrgres and repository pattern