Implement files metadata database storage.