fixed bug in dblist, added classnotfound in controller, fixed bug in sql