check inserts into db