Rename FuPending to FuHistory to better represent what the object is now doing. Also, while we're here, switch to using SQLite prepared statements to avoid a possible invalid read on i386 hardware.