Understanding the database and recovery log