Serialization to database works now.