Separated the log and key databases.