adjust database installer. fix generation of ids.