remove mysql functions , sort dynamo db data based on time