Added database / login functionality to desktop version