add db functionality to bot