making mock database authentication