add qr scan activity. database bug still remains.