moved sql to docs