days view now works
added unique constraint to Day