- changing path to DB file from relevant to absolute
- a little bit refactoring