added constraints to database