Added unique contraint on user/date for periods
Added unique contraint on user/date for periods
Added limitation so users can only create their own periods