Fix SQL file name.
Basic user management, login and registration, minor index cleanup.