Fix crash in menulist

Menulist was using an old table that has been removed from the database.
Moved the code over to PDO while fixing it.
Merge branch 'develop' into codeviewer-master