small improvements
setuped coverage
functional tests to be runed in separate env
started refactoring of db access
removed logis to models
refactored database logic