Managing databases in Phonebot applications