Fixed everything to use the new SQLite library