Fixed bug where db.commit became necessary and wasnt being called. This was causing the ticket observer to fail in it duties.
Also fixed a potential bug in dbhelper having to do with iterating over None.