removed @db back to db