test db insertion