fix remote address tests not working
fix bug in mysql store when an account does not have any successfull logins