Updated to use new float/double DB functions
Remove redundant casting