generate messages and new location for db