Fixed database and added host constraints
Add constraints
added constraints