added problem serialization to database