updated db connection in gui as well