Added database var in reject plugin