Updated to use new float/double DB functions