Added sqlite3 database connecting functionality