Refactor Soledad shared db to another file.