bug fix in logger. convokey -> databasekey. minor changes style changes elsewhere.