Better handling missing SQLAlchemy lib.
Improved URL parsing and tests.