sales saved to database