Created by: ghost
Separate metadata out from JS and put into database.
Update meta-factory to use database.