fix package add rep.db