validating the database insertions

validating the database insertions