use "open" event if using external Db instance