Fix for database lock error, hopefully.