Solution to both the issues are as follows:
1- H2 DB data is stored in the file firedb.mv.
Make sure that the user with which Sparkflows is running has write access to the file.
2- Log into H2 DB and run the below:
SHUTDOWN COMPACT
Note:
H2 DB commands can be found at the this location: H2DB Commands Cheatsheet