DB update
fix - small refactoring
fix in generator
adding rmview support

fix layout: resource extern callbacks and resource main win