added nodeIndex to json and java model
renamed node's field id to name, added id to java models
implemented mapping java model to database, implemented save diagram function, added script for creating database