Added database funtionality to bot