fixing bug in edit database (hosttype error)