Changed to take db object