Distinct db view for authentication
Fs refactoring + cleanups