Fix many db errors.
Small changes in magic selector to support new DB syntax.
Remove double quote character in description parser.