added result output for database statements