Use database instead of filesystem for maintenance flag
Use database locks instead of files for news sync