Do not create/close db in getLessonId and getUserId