Added code for connecting to SQLite database