added db evolution; minor fixes