store database ids as user-defined vars