Removed the login logging. Cookie based logins work fine, and I no longer need the logs written to the db