Implemented kryo registration and reading from key for H2 and MySQL