Made the b07.database conditional on actually logging the information