Move more sql construction responsibilities into the DV handlers
Make sure db errors are always turned into the correct type
Merge pull request #57 from wmde/mv

Move more sql construction responsibilities into the DV handlers