updated global db for sqlite contraints switch