updates dependencies
doc
extracts database logic to basic database module