Added Roberts nbfake changes, use a dotfile for the db ready file flag