Sqlite for console - fixes #198