SQL added to resetting password method