Adding db auth based authentication