Revert "Databse implementation"

This reverts commit 6474e75889a7b5752bc4c6ce77b8459a78519e89.
Updated code and documentation