stop varDB.getAll being run every time and actually make it work properly