There are a number of open source DBs, reading the code will be a real challenge. You have to know what each module is implementing and the subtle features. You have to be a serious language expert in whatever programming language they used.
There so many excellent systems available that are most likely better than whatever you write and which are available for use right now.
Build something like Clickhouse, it's source is on GitHub.
It's work in progress, so it's not very huge yet.
See if you can recreate it in Rust.
Lemme know if you want me to contribute to your project :).
Happy to code some parts.