Only throw the first error on syncing the whole database.

When syncing the whole database, we get a list of errors in case of
failure. Throwing a list makes it difficult for other middlewares to
handle the error. Therefore, we throw only the first error.
Merge pull request #136 from vincentbernat/fix/db-sync

Only throw the first error on syncing the whole database.