Added lockouts to logins
Various tweaks for logins
Also includes general sql cleanup of db schema.
Scaffolding for actual webpage