Get db file path from env variable
Fix bug in db loading