save scanned to database