fix(database): add indices to prevent deadlock on database

 -- adds indices to oracle, mysql and postgresql sql create scripts
 -- adds indices to oracle, mysql and postgresql  sql drop scripts

 Related to: #CAM-2567
fix(database): add patch script for updating from older version

 -- adds a patch script which contains the new created indices

 Related to: #CAM-2567