use namespace info from db now, fix bot.py