added all metadata to db