Checked date and datetime formats before to set them. Added also new test case for alter database command
Fixed issue #2930
Merged last changes
Fixed test
Merge branch 'develop' of https://github.com/orientechnologies/orientdb into develop