Fixed 'db::query' when 'data' is 'None'
Checking user's authentication in preloop and precmd
Minor fixes to lib/plugin_auth