sql procedure for sales
WIP for daily sales