Bug fix for storing data points in database.

Signed-off-by: Jared Woolston <jwoolston@tenkiv.com>