Add DB constraints