updating db calls to use basic auth