Fix codeDBHelper.

Fix the getOneByMemLevel method.