SQL log accounting and post_auth