Made database record serializable. This allows to pull them into sessions or memcached.