Support DB in readonly mode (#1246) - properly convert string to boolean, avoid multiple calls for readonly status check on the same action, Use log instead of system.out.