Changed from json to sqlite3. Added glade for error, for new DB and added PyCmError and PyCmNew class