added simple json api
added global db
improved new project dialog