Update UI interfacing with the database