fix a couple bugs + integrate db with bots