Trying to implement delete functionality properly with SQLite