Refactor 'Database' into 'Read' and 'Write'