Unused instructions removed: the queries to the database are now made using prepared statements