Add test environment config
Refactor: write db using promises
Unit-test: refactor routes server tests, to use test env, with setup/teardown
Code linting