Fixed issues with storing empty values/retrieving wrong database
columns. Problem still exists with storing/retrieving of bitmaps