added first draft of database section

Do not merge yet. Still WIP.