only mkdir if directory doesnt exist, only create db if db doesnt exist