Add SqLite connection and some logging