fix db recursion bug when calling Scene(db, context, cursor)