style
refactor: moved database code out of BotService.php