Move db-specific option logic to backends

Also move --port which is not a backend option out of the backends