Add a no-op query to prevent database timeouts during a long reindex

Fix #56 

I am not sure if `SELECT 1` is the best option here, nor if it works for every database, so I would appreciate feedback/changes if possible.