insert all info into db