Solution of Sample 1- shop entry with database