adding sql, doc