[z1999] Enable SQL-Storage to work with entries of value zero

(cleaned version of 6c0566a)

(based on commit [s1596] - f232054)