add insert to db version and type