fixes an insert bug in setup db