doc and sql and demo methods