extract id from all database/sql types