Closes #115 try a different mechanism for database lock checks