Moved #commands logging to the database.
Added much more info to it as well.
If commands_log table doesn't exist, it auto creates.
I left the old logger in but commented in case someone prefers it.