More fork handling

Print a message to the console when a fork is detected, and update
block_height_checked in the database.