clean sql stuff