Hopefully prevent database locks when pulling rows