db insertion beggining