Improved n_access pop db call