set-up environment dir and permissions for api
Merge pull request #467 from georgebyelas/master

set-up environment dir and permissions for api-db