Programmatically check the database every 20 secs

Signed-off-by: djcollier <dj@getfoodio.com>