Merge table metadata extraction functions in a single file

I didn't like the 00- prefix, and those 3 functions really go
togheter, after all