Added getById Method to DbClass