added metadata function
Merge branch 'master' of github.com:warrieka/xgrab2db