Encapsulating multiple databases with a storage layer