Linking time slider to db values