Rewrote the date processing in the shop database. More reliable and will now reset upon midnight