updated db to take into acct. for constraints