Adding SQL and updating docs.