fix in DB upgrade procedure and schema init script