Create sleep data table

Fixed create sleep data table statement