Serializer for Nette Database