layout, and sql add