database - fix error info - replace var_dump with print_r