If there was an OperationalError the orm class would lock that database for the remainder of the classes lifecycle - updated logic to use try/catch, and keep trying until the database is not locked - other OperationalErrors are raised