implemented update of online status in db upon login/logout