@ardila Currently the logic appears to be that write-db and write-features are mutually exclusive.   Is that what you intended?   

I can imagine modifying the usage slightly as follows:

1.  add a "--layer" option, which describes which layer to write, basically renaming the current write-features option, which I find an obtuse naming. 

2. have two independent options, "write-disk" and "write-db" which control whether features are written to disk and/or db.  I see no reason these options should be mutually exclusive.   But probably write-disk should default to True and write-db should default to False.