moved sql