Fix #1
Add constraints in the DB #9