Here the code with the clock trick
The second way is great if you have a different database, here the guide