re-implement a function to get elements with raw queries in CodeFragmentDao
[MINOR_CHANGE] remove unused import statement