calibre-debug -c "from calibre.library import db; db = db(); db.conn.execute('the sql query'); db.conn.commit()"