Bug 1079356 - Convert the apn items before storing them to the database

https://bugzilla.mozilla.org/show_bug.cgi?id=1079356