Small fixes to meta_db