schema_from_db function

Extract a table schema from a DB connection