Changed auth to get db credentials