Updated table for auth results, refactored database model