Either save regularly (possibly locking issues with this approach) or switch over to fully SQL based approach