switched back to deprecated db method