This is too broad a question for us to answer in a small text box: so start with Google.
Google: create my own "database management system"[
^]
Half a million results, most of them with some information.
Work out what you need, then try to ask a more specific question. At the very least, decide on a language...