Fixed the database write issue. Off by one error.
Fixed the error text output on new guest