finish program that insert and delete data from db