make metadata storage pluggable

created_date should be VARCHAR(255), since we use TINYTEXT in MySQL