Fix (or break) to the login table sql

This may fix (or break) Micah's sql.