Storage of valid metadata into db (#20).