test insertion of data into database