removed logging, and fixed sqlite module - was using completely the wrong method