minimal working database

*configuration & re-factoring is needed