added db connections and implimented authentication nav