fix db path for test
use $_ENV for enviroment
remove dev function load