Add API for #37. Add transaction for CustomerDao and StaffDao.