Converted library.py to SQLite3. Still testing