Revert "First commit with new select_duration feature. Support to be added for postgres and mysql"

This reverts commit d96a3684b5adbd67a8e1e9cc8e1becfc88d2ff3d.