Added database query methods