How should we be claiming to not owe taxes?

The past 2 years we have owed federal taxes. My wife and I both work full time jobs, own a home and have 2 kids. How should we be filing? I recently switched my selections on my W4 to married filing separately and claiming 0 dependents. Is this correct??