add configuration and logger
add db worker
work with transactions
finish non demon version