Added insertion of fragments to database

and deserialization of Choices in fragments (I hope)