A few bugfixes for author biographies. Also moved a few functions that used to be in "util" into "db"