BOMTool working with database

also edited dataentryform so that order of colums (eff, crit, def) is
consistant