Fixed parsing of doubles/longs when persisting prices to db.
Fixed database persistance.