remove dead code

sql/database converts float32 to float64
datatime parameters

encode days and seconds/300 for datetime