rearrange sql files layout