fix processes for db