Add functions for saving receipt data to the database