change db layout