Testing works, authenticate uses database