Following the AppCoda tutorial for SQLite