added logging, exception handling & dummy class for sqlite support