properly checks for instance of engineDB