worked on nav functions
dbConnect now class based